/* Modern, clean styling */
:root {
    --primary-color: #2196F3;
    --secondary-color: #03A9F4;
    --background-color: #f5f5f5;
    --panel-background: #ffffff;
    --text-color: #333333;
    --border-color: #e0e0e0;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px;
    background-color: var(--panel-background);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header h1 {
    margin: 0;
    color: var(--primary-color);
}

.controls button {
    padding: 8px 16px;
    margin-left: 10px;
    border: none;
    border-radius: 4px;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

.controls button:hover {
    background-color: var(--secondary-color);
}

.main-content {
    display: flex;
    gap: 20px;
}

.workflow-container {
    flex: 2;
    background-color: var(--panel-background);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#workflow-graph {
    width: 100%;
    height: 600px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.side-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.metrics-panel, .history-panel {
    background-color: var(--panel-background);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.metrics-panel h2, .history-panel h2 {
    margin-top: 0;
    color: var(--primary-color);
}

#metrics-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.metric {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background-color: var(--background-color);
    border-radius: 4px;
}

#step-history {
    max-height: 400px;
    overflow-y: auto;
}

.step-item {
    padding: 10px;
    margin: 5px 0;
    background-color: var(--background-color);
    border-radius: 4px;
    border-left: 4px solid var(--primary-color);
}

.step-item.active {
    border-left-color: #4CAF50;
}

.step-item.error {
    border-left-color: #f44336;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}
